<template>
    <div class="album-card">
        <div class="album-cover">
            <img :src="coverUrl" :alt="albumName" />
        </div>
        <div class="album-title">{{ albumName }}</div>
    </div>
</template>

<script setup>
defineProps({
    coverUrl: {
        type: String,
        required: true
    },
    albumName: {
        type: String,
        required: true
    }
});
</script>

<style scoped>
.album-card {
    width: 700px;
    height: 350px;
    max-width: 700px;
    max-height: 350px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.album-cover {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}


</style>